3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and edit point lights.
You can use the Q3PointLight_New function to create a new point light.
TQ3LightObject Q3PointLight_New (
const TQ3PointLightData *pointLightData);
You can use the Q3PointLight_GetCastShadowsState function to get the shadow-casting state of a point light.
TQ3Status Q3PointLight_GetCastShadowsState (
TQ3LightObject light,
TQ3Boolean *castsShadows);
You can use the Q3PointLight_SetCastShadowsState function to set the shadow-casting state of a point light.
TQ3Status Q3PointLight_SetCastShadowsState (
TQ3LightObject light,
TQ3Boolean castsShadows);
You can use the Q3PointLight_GetAttenuation function to get the attenuation of a point light.
TQ3Status Q3PointLight_GetAttenuation (
TQ3LightObject light,
TQ3AttenuationType *attenuation);
You can use the Q3PointLight_SetAttenuation function to set the attenuation of a point light.
TQ3Status Q3PointLight_SetAttenuation (
TQ3LightObject light,
TQ3AttenuationType attenuation);
You can use the Q3PointLight_GetLocation function to get the location of a point light.
TQ3Status Q3PointLight_GetLocation (
TQ3LightObject light,
TQ3Point3D *location);
You can use the Q3PointLight_SetLocation function to set the location of a point light.
TQ3Status Q3PointLight_SetLocation (
TQ3LightObject light,
const TQ3Point3D *location);
You can use the Q3PointLight_GetData function to get the data that defines a point light.
TQ3Status Q3PointLight_GetData (
TQ3LightObject light,
TQ3PointLightData *pointLightData);
The Q3PointLight_GetData function returns, through the pointLightData parameter, information about the point light specified by the light parameter. See "Point Light Data Structure" for a description of a point light data structure.
You can use the Q3PointLight_SetData function to set the data that defines a point light.
TQ3Status Q3PointLight_SetData (
TQ3LightObject light,
const TQ3PointLightData *pointLightData);
Previous | QD3D Book | Overview | Chapter Contents | Next |